import matplotlib.pyplot as plt
import numpy as np

# Data
companies = ['Top Group', 'CATL']
revenue = [19700560430.00, 40091704490.00]  # Revenue in Yuan

# Set the figure size
plt.figure(figsize=(10, 6))

# Create the bar chart
bars = plt.bar(companies, revenue, color=['blue', 'green'])

# Add value labels on top of each bar
for bar in bars:
    yval = bar.get_height()
    plt.text(bar.get_x() + bar.get_width()/2, yval, f'{yval:.2f}', ha='center', va='bottom')

# Set the title and axis labels
plt.title('Revenue Comparison between Top Group and CATL for 2023')
plt.xlabel('Companies')
plt.ylabel('Revenue (Yuan)')

# Show the plot
plt.show()